/*常用工具类
  Create At 2017-12-30
 */
var tools={
  /*清除字符串中的Html */
  clearHtml:function(targetStr){
    var reTag = /<(?:.|\s)*?>/g;
    var regnbsp=/\&nbsp;/g;
    var regimg=/img {max-width:100%;}/g;
    return targetStr.replace(reTag, "").replace(regnbsp, "").replace(regimg,"");
  },
  /*清除无效样式img-max */
  clearInvalidStyle: function (targetStr){
    var regimg = /img {max-width:100%;}/g;
    return targetStr.replace(regimg, "");
  }
}
module.exports.tools=tools;